#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_Eagleim.h"

#include <qtcpsocket.h>

class Eagleim : public QMainWindow
{
	Q_OBJECT

public:
	Eagleim(QWidget *parent = Q_NULLPTR);
	~Eagleim();
private:
	Ui::EagleimClass ui;
	QTcpSocket * tcpClient;

public :
	void initWindow();

public slots:
	void connectedToServer();
	void readData();
	void readError(QAbstractSocket::SocketError);
};
